#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int n = 0;
	scanf("%d", &n);
	for (int i = 1; i <= n; i++)
	{
		for (int l = 0; l < n-i ; l++)
		{
			printf(" ");
		}
		for (int j = 0; j <2* i-1; j++)
		{
			printf("*");
		}
		printf("\n");
	}
	for (int i = 1; i <= n-1; i++)
	{
		for (int l = 0; l < i; l++)
		{
			printf(" ");
		}
		for (int j = 0; j < 2*(n-i-1)+1; j++)
		{
			printf("*");
		}
		printf("\n");
	}
	return 0;
}